package user;

import book.BookList;
import operation.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-05-13
 * Time: 13:30
 */
public abstract class User {
    protected String name;

    IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();

    public void youOperate(int choice,BookList bookList) {
        this.iOperations[choice].work(bookList);
    }
}
